'''
Created on 23.2.2012

@author: mphkh
'''
from CashFlowUtils.IceBonds import *
from Calendar.Iceland import *
from datetime import date
from datetime import timedelta

ddate = date(2012,2,21)

bond = ARIONCBI34()

yld1 = 0.036
yld2 = 0.03
yld3 = 0.025

print bond.dirtyprice(ddate, yld1)
print bond.dirtyprice(ddate, yld2)
print bond.dirtyprice(ddate, yld3)

cf1 = bond.remaining_cashflows(ddate)

for obj in cf1:
    print obj.yearfrac, obj.cfdate, obj.daysPeriod, obj.amount, obj.notional, obj.interests, obj.amortization



